package com.xique.job.task;

import com.xique.park.api.RemoteBillFileService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 工行结算对账单下载定时任务
 *
 * @author WLD
 */
@Slf4j
@RequiredArgsConstructor
@Component
public class IcbcBillFileDownloadTask {

    private final RemoteBillFileService remoteBillFileService;

    /**
     * 1.结算对账单下载
     * 2.清分对账单下载
     */
    public void billFileDownloadTask() {
        log.info("[定时任务]-对账单下载");
        long startTime = System.currentTimeMillis();
        remoteBillFileService.billFileDownloadTask();
        log.info("[定时任务]-对账单下载执行时间：{}", System.currentTimeMillis() - startTime);
    }

}
